/* ========== Global Style ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* cegah scroll kanan */
    font-family: 'Poppins', sans-serif;
}


section {
    height: 80vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header & Navbar ========== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.771), rgba(0, 0, 0, 0));
  position: fixed;  /* Ganti sticky jadi fixed */
  top: 0;
  z-index: 1000;  /* Supaya selalu di atas */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Sticky Active Class */
header.sticky {
background: #980e0e;
/* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.588); */
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.15); */
  border-bottom: 1px solid rgb(55, 55, 55);
}   

header.sticky nav a{
  color: #ffffff; 
}

header.sticky .icon-btn{
  color: #ffffff;
}

header.sticky .search-box button {
    color: #ffffff;  /* Ganti warna teks & icon biar kontras di bg putih */;
}

header.sticky .search-box input {
    border-bottom: 1px solid #ffffff;
    color: #ffffff;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}


header img {
    height: 70px;
}

.no-hac{
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 20px;
}


nav a {
    margin-left: 30px;
    font-weight: 500;
    color: #ffffff;
    transition: 0.3s;
}

nav a:hover {
    color: rgb(196, 193, 193);
    /* ganti dengan warna utama Hacom kalau ada */
}

.item {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-top: 10px;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 8px;
    padding-bottom: 5px;
    /* position: relative; */
}

.search-box button {
    background: none;
    border: none;
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    /* margin-top: 5px; */
}

.search-box input {
    border: none;
    border-bottom: 1px solid transparent;
    padding: 5px 10px;
    font-size: 14px;
    outline: none;
    width: 0;
    opacity: 0;
    background: transparent;
    color: #ffffff;
    transition: width 0.3s ease, opacity 0.3s ease, border-bottom 0.3s ease;
}

.search-box.active input {
    width: 150px;
    /* Muncul ke kiri */
    opacity: 1;
    border-bottom: 1px solid #ffffff;
    margin-right: 10px;
    /* Jarak antara input dan icon */
}

.search-box input::placeholder {
    color: #d8d8d8;
    font-style: italic;
}


/* Icon Buttons */
.icon-btn {
    font-size: 20px;
    color: #ffffff;
    transition: color 0.3s ease;

}

.icon-btn:hover {
    color: rgb(196, 193, 193);
    /* Warna merah Hacom */
}


/* ========== Hero Section ========== */


.hero {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;

}

.image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    margin-left: 100px;
    margin-top: 250px;
    margin-bottom: 40px;
  }

.hero-content h1 {
    font-size: 40px;
    line-height: 40px;
}

.hero-content p {
    font-size: 15px;
    margin-top: 20px;
    max-width: 500px;
}

.hero-content button {
    padding: 15px 20px;
    border-radius: 25px;
    margin-top: 10px;
    background-color: rgba(183, 8, 8, 0);
    color: white;
    border: 1px solid rgb(255, 255, 255);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, border 0.3s ease, gap 0.3s ease;
    /* Ini bikin smooth */
}

.hero-content button:hover {
    background-color: rgb(226, 226, 226);
    border: 1px solid rgb(226, 226, 226);
    color: black;
    gap: 20px;
    /* Jarak antar icon & teks nambah smooth */
}

/* Hamburger Button Style */
.hamburger {
    display: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    z-index: 200;
}

.nv i {
  display: none;
}


/* tablet Styles */
@media (max-width: 1080px) {

  /* Tampilkan Hamburger di Mobile */
  .hamburger {
    display: block;
    margin-right: 20px;
  }

  header {
    padding: 15px 1px;
  }
  
  header img {
      height: 50px;
    }

  .logo {
    order: 1;
    /* Logo di kiri */
  }

  .header-icons {
    order: 2;
    /* Hamburger + Cart + Profile di kanan */
  }

  /* Sembunyikan Menu di Mobile */

    nav {
      display: none;
      flex-direction: column;
      align-items: start;
      width: 100%;
      height: 100vh;
      background: #000000d9;
      padding: 80px 30px;
      gap: 40px;
      position: absolute;
      top: 0; /* di bawah header */
      left: 0;
      z-index: 150;
    }


  /* Tampilkan saat aktif */
  nav.show {
    display: flex;
  }

  nav a {
    margin: 10px 0;
    padding-bottom: 10px;
  }
  
    .nv{
    border-bottom: 1px solid rgba(255, 255, 255, 0.282);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nv i {
    display: inline;
    margin-right: 8px; /* atau sesuai selera */
    vertical-align: middle; /* biar sejajar teks */
  }

  .item {
    /* flex-direction: column; */
    align-items: flex-start;
    padding: 10px 0;
  }

  .hero-content {
    padding: 0;
  }



  #about {
    height: auto;
  }

  .about {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 10px;
  }

  .about-img img {
    width: 500px;
  }

  .about-img {
    background-color: transparent;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
  }

  .about-top {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .vision-mission {
    flex-direction: column;
    align-items: center;
  }

  .about-gallery img {
    max-width: 100%;
  }


  .new-product {
    height: auto;
  }
}

@media(max-width: 765px) {
  .hero-content {
    margin-left: 20px;
  }

  .hero-content h1 {
    font-size: 30px;
    line-height: 40px;
  }

  .hero-content p {
    font-size: 15px;
    margin-top: 5px;
  }

  .about-img img {
    width: 300px;
  }
}


/* Animasi Ikon Hamburger jadi Close */
.hamburger.open i::before {
    content: "\f00d";
    /* fa-times (ikon close) */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgb(0, 0, 0);
}

.privacy-policy {
    padding: 60px 20px;
    background-color: #f9f9f9;
    height: auto;
}


.privacy-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
    color: #b90000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.privacy-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.section.item {
    display: flex;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section.item {
    transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


.icon-wrapper {
  min-width: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
   font-size: 32px;
}

.section.item .text {
    flex: 1;
}

.section.item .text h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #b90000;
}

.section.item .text p,
.section.item .text ul {
    margin: 0;
    font-size: 16px;
}

.section.item ul {
    padding-left: 20px;
}

.section.item ul li {
    margin-bottom: 8px;
}


@media (max-width: 768px) {
  .section.item {
    flex-direction: row !important;  /* Pastikan row, tidak column */
    align-items: flex-start;
    text-align: left;
  }

  .section.item i {
    margin-right: 12px;
    margin-bottom: 0;
  }
}

/* FOOTER */
.footer {
  background-color: #ededed;
  color: #333;
  padding: 30px 20px 10px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  gap: 20px;
  justify-content: center;

}

.footer-conten {
  margin-right: 60px;
}
.footer-about {
  flex: 1 1 300px;
  max-width: 350px;
}

.footer-about img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-about p {
  margin-top: 10px;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
}

.social-icons a {
  margin-right: 15px;
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #b90000; /* warna merah Hacom */
}

.footer-product {
  display: flex;
  gap: 80px;
}

.footer-links {
  flex: 1 1 150px;
}

.footer-links h4 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  color: #111;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #b90000;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: #777;
}

@media (max-width: 950px) {
  .footer-container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-conten {
    flex: 1 1 50%;
    margin-right: 20px;
  }

  .footer-product {
    flex: 1 1 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-links {
    flex: 1 1 45%; /* Jadi 2 kolom per baris */
    min-width: 150px;
  }
}

@media (max-width: 760px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-conten {
    margin-right: 0;
    margin-bottom: 30px;
    width: 100%;
  }

  .footer-product {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    width: 100%;
  }

  .footer-links {
    flex: 1 1 45%; /* Bagi dua di layar sedang */
  }
}

@media (max-width: 480px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-conten {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
  }

  .footer-product {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
    width: 100%;
  }

  .footer-links {
    flex: 1 1 20%; /* Bagi dua di layar sedang */
  }

  .footer-bottom {
    font-size: 10px;
  }
}
